package com.atguigu.day09.test.s2;

public class Person {
    String name = "张三";
    static String country = "China";
    public void sleep(){
        eat();
    }

    public void eat(){
        System.out.println("eat()");
        System.out.println(name);
        System.out.println(country);
    }

    public static void sum(){
        System.out.println("static sum()");
        System.out.println("country = " + country);
       // System.out.println(name);
       /* Person p = new Person();
        p.eat();
        System.out.println("p.name = " + p.name);*/
      //Person.  add();
      add();
    }

    public static void add(){
        System.out.println("Person add ");
       // System.out.println(this);
    }
}
class Student extends Person{

   // public static void add(){}
    @Override
    public void eat() {

    }
}
